package mybatis;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    Integer insert(User user);

    String selectNameById(Integer id);


    @Select("select name from t_user where id=#{id}")
    String selectName(@Param("id") Integer id);

}
